<template>
  <div class="field-item">
    <van-cell-group inset>
      <van-field size="large" v-model="value" autocomplete="off" :="$attrs" />
    </van-cell-group>
  </div>
</template>
<script>
// 使用一个简单的 <script> to declare options
export default {
  inheritAttrs: false,
};
</script>
<script setup>
import { ref } from "vue";
const props = defineProps({
  value: String | Number,
});
const value = ref(props.value);
</script>

<style lang="scss" scoped>
.field-item {
  width: 100%;
  ::v-deep .van-cell {
    padding: 9px 0;
    font-size: 14px;
  }
  ::v-deep .van-cell-group--inset {
    margin: 0;
  }
}
</style>
